package com.smile.controller;

import com.smile.commons.page.R;
import com.smile.model.dto.request.TaskRequestDTO;
import com.smile.model.request.GetAirportDetailInfoRequest;
import com.smile.service.SituationScreenService;
import com.smile.service.TaskService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.io.IOException;
import java.util.Map;

@RestController
@RequestMapping("/task")
public class TaskController {

    @Autowired
    private TaskService taskService;

    /**
     * 态势大屏详情
     * @param taskRequestDTO
     * @return
     * @throws IOException
     */
    @PostMapping("/info")
    public R<Map> getAirportDetailInfo(@RequestBody TaskRequestDTO taskRequestDTO) throws IOException {
        Map<String,Object> map = taskService.Info(taskRequestDTO);
        return R.ok(map);
    }
}
